<template>
  <!-- 人流男女比例 -->
  <div class="sex-info chart-box1">
    <div class="chart-title">人流占比</div>
    <div class="chart-content">
      <a-row :gutter="12" align="middle" class="h-100p">
        <a-col :span="8" class="text-right chart-container">
          <div style="color: #1699b7; height: 50%">
            <span>男性：</span>
            <span class="number" style="font-size: 2.4rem">58%</span>
          </div>
          <div style="width: 100%; height: 50%">
            <Decoration8 :color="['#1699b7', 'transparent']" />
          </div>
        </a-col>
        <a-col :span="4">
          <cu-icon type="org-nanxing" style="font-size: 5rem; color: #fff" />
        </a-col>
        <a-col :span="4">
          <cu-icon type="org-nvxing" style="font-size: 5rem; color: #fff" />
        </a-col>
        <a-col :span="8" class="chart-container">
          <div style="color: #dc6a1f; height: 50%">
            <span>女性：</span>
            <span class="number" style="font-size: 2.4rem">42%</span>
          </div>
          <div style="width: 100%; height: 50%">
            <Decoration8 :reverse="true" :color="['#dc6a1f', 'transparent']" />
          </div>
        </a-col>
      </a-row>
    </div>
  </div>
</template>

<script>
import { defineComponent, reactive, toRefs, onMounted } from "vue";
import { Decoration8 } from "@kjgl77/datav-vue3";

export default defineComponent({
  name: "SexInfo",
  components: { Decoration8 },
  setup(props) {
    const state = reactive({});

    const initChart = () => {};
    onMounted(() => {
      initChart();
    });
    return {
      ...toRefs(state),
    };
  },
});
</script>

<style lang="less" scoped>
@import "../../styles/common.less";
</style>
